package com.mogu.biguser.dao.base_sys;

import com.mogu.biguser.domain.base_sys.SysUser;
import com.mogu.biguser.web.api.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(Short userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Short userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);
    

    String getRole(String username);

    SysUser selectByUserName(String name);

    List<String> queryAllPerms(@Param("userId") int userId, @Param("basesysnum") int basesysnum);

    User selectNameByUserName(String username);

    List<String> queryAllRegion(@Param("userId") int userId);

    List<String> queryAllRegiondeptId(int userId);
}